package com.example.transactionhintassistant.pojo.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Schema(description = "用户信息添加表")
@Data
public class AddUserInfoDto {
    @Schema(description = "昵称")
    @NotEmpty(message = "昵称不能为空")
    @Length(min = 1, max = 16,message = "昵称⻓度⾄少1位但不超过16位!")
    private String nickname;
    @Schema(description = "个人介绍")
    @Length(max = 50,message = "个人介绍⻓度不超过50位!")
    private String introduction;
    @Schema(description = "头像")
    @NotEmpty(message = "头像不能为空")
    private String avatar;
    @Schema(description = "颜色主题")
    @NotEmpty(message = "颜色主题不能为空")
    private String colorTheme;
}
